export const namespace = "stadiumPayrollWagesDetail";
import { Image } from "antd";

export const calcColumns = (params) => {
  const columns = [
    {
      title: "发生时间",
      dataIndex: "occurDate",
    },
    {
      title: "课程类型",
      dataIndex: "courseType",
      valueEnum: {
        1: { text: "私教课" },
        2: { text: "团课" },
        3: { text: "班课" },
      },
    },
    {
      title: "课程名称",
      dataIndex: "courseName",
      hideInSearch: true,
    },

    {
      title: "课时费",
      dataIndex: "classHourCost",
      hideInSearch: true,
    },
    {
      title: "课程时长",
      dataIndex: "courseDuration",
      hideInSearch: true,
    },
    {
      title: "本次课时费",
      dataIndex: "classCurrentHourCost",
      hideInSearch: true,
    },
  ];
  if (params?.operate) {
    columns.push(params?.operate);
  }
  return columns;
};
